package com.platform.service.impl;

import com.platform.dao.DictDao;
import com.platform.domain.TbSysCode;
import com.platform.service.DictService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: wangyanginfo
 * Date: 12-8-22
 * Time: 上午10:42
 * To change this template use File | Settings | File Templates.
 */
@Service("dictService")
public class DictServiceImpl implements DictService {

    @Resource
    private DictDao dictDao;


    /**
     * 根据查询条件查询出符合条件的字典定义
     *
     * @param code 字典对象
     * @return 字典对象集合
     * @throws Exception
     */
    @Override
    public List<TbSysCode> queryCodes(TbSysCode code) throws Exception {
        return dictDao.queryCodes(code);
    }
}
